<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<!--求10随机数，随机数要求为25-99的整数,并且将10个随机数里面能够被3整除的数进行叠加,要将随机数打印出来，要将叠加结果打印出来-->
		<script type="text/javascript">
			var arr = new Array();
			sum = 0;
			for(var i = 1; i <= 10; i++) {
				arr.push(Math.floor(Math.random() * 75 + 25));
			}
			for(var i = 1; i <= 10; i++) {
				if(!(arr[i] % 3 == 0 && arr[i] > 80)) {
					sum += arr[i];
				}
			}
			console.log(arr);

			var arr1 = arr.filter(function(value, index, arr) {
				return value % 3 == 0 && value > 80;
			});
			console.log(arr1);
		</script>
	</body>

</html>